import axios from 'axios'
let addBingli = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/addBingli`, param)
}
let deleteBingli = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/deleteBingli`, param)
}
let updateBingli = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/updateBingli`, param)
}
let bingliList = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/bingliList`, param)
}
let getMyDistrictList = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/getMyDistrictList`, param)
}
let getYangTotal = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/getYangTotal`, param)
}
/**
 * 查询前一天的新增阳性病例数
 * @param {*} param 
 * @returns 
 */
let getYangListByDistrict = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/getYangListByDistrict`, param)
}
let getYangListByStatus = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/getYangListByStatus`, param)
}
/**
 * 查询最近7天的新增阳性病例数
 * @param {*} param 
 * @returns 
 */
let getPrevWeekYangListByDistrict = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/getPrevWeekYangListByDistrict`, param)
}
let getPrevWeekYangListByStatus = (param) => {
    return axios.post(`/nuaa-scs-hanjs/bingliManage/getPrevWeekYangListByStatus`, param)
}
let exportBingliList = (param) => {
    return axios({
        method: "POST",
        url: "/nuaa-scs-hanjs/bingliManage/exportBingliList",
        data: param,
        headers: {
            
        },
        responseType: "blob",
    })
}
export {
    addBingli,
    deleteBingli,
    updateBingli,
    bingliList,
    getMyDistrictList,
    exportBingliList,
    getYangTotal,
    getYangListByDistrict,
    getYangListByStatus,
    getPrevWeekYangListByDistrict,
    getPrevWeekYangListByStatus
}